package org.gd.hellojaxb.privat24.admin;

import javax.xml.bind.annotation.*;

@XmlRootElement(name = "admin")
@XmlAccessorType(XmlAccessType.NONE)
public enum AdminResultMessage {

    @XmlEnumValue("you have no rights to work with the menu")
    @XmlAttribute(name = "error", required = true)
    NO_RIGHTS("you have no rights to work with the menu");

    @XmlAttribute(name = "error", required = true)
    private String message;

    private AdminResultMessage(String message) {
        this.message = message;
    }

    public String getMessage() {
        return message;
    }
}
